<template>
  <div class="lift">
    <el-row>
      <el-col :span="24">
        <el-menu
          default-active="1"
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          router
        style="text-align: left;overflow: hidden;display: block"
        >

          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-s-shop"></i>
              <span>商品管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/goods/list">商品列表</el-menu-item>
              <el-menu-item index="/goods/add">添加商品</el-menu-item>
            </el-menu-item-group>
          </el-submenu>



          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-s-cooperation"></i>
              <span>订单管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/order/list">订单列表</el-menu-item>
              <!--<el-menu-item index="1-2">选项2</el-menu-item>-->
            </el-menu-item-group>
          </el-submenu>



          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-s-check"></i>
              <span>财务核算</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/finance/bill">财务对账</el-menu-item>
            </el-menu-item-group>
          </el-submenu>



          <el-submenu index="4">
            <template slot="title">
              <i class="el-icon-s-custom"></i>
              <span>我的信息</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/index/user">商户信息</el-menu-item>
            </el-menu-item-group>
          </el-submenu>

        </el-menu>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'lift',
  data() {
    return {
      isCollapse: true
    }
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath)
    }
  }
  }
</script>

<style scoped>
  .el-menu{
    border-right:0;
  }
</style>
